package com.tuniu.agents.tools.train.model;

import lombok.Data;

import java.util.List;

/**
 * Data required for WeChat mini program train ticket booking page
 */
@Data
public class TrainMPOrderLinkData {
    private List<TrainInfo> select;

    private int systemId = 120;

    private boolean update;

    private int initIndex;

    //depart date yyyy-MM-dd
    private String departDate;

    @Data
    public static class TrainInfo {
        private Integer trainId;
        private String trainNum;
        private Integer trainTypeCode;
        private String trainTypeName;
        private String departStationName;
        private String departStationCode;
        private String destStationName;
        private String destStationCode;
        private String departureCityCode;
        private String arrivalCityCode;
        private String departureCityName;
        private String departureCityName2;
        private String arrivalCityName;
        private String arrivalCityName2;

        //depart time, pattern: HH:mm
        private String departDepartTime;
        private String destArriveTime;
        private String duration;
        private Integer durationDay;
        private String departStationType;
        private Integer departStationTypeCode;
        private String destStationType;
        private Integer destStationTypeCode;
        private String saleStatus;
        private Integer saleStatusId;
        private Integer leftNumber;
        private String seat;
        private List<SeatDesc> seatDesc;
        private String price;
        private String promotionPrice;
        private Integer resId;
        private String memoDay;
        private String memoHour;
        private Boolean canGrap;
        private Integer oneLeftNumber;
        private Boolean supportSeatSelection;
        private Boolean supportIdCheckin;

    }

    @Data
    public static class SeatDesc {
        private Integer leftNumber;
        private Integer seatId;
        private String seatName;
        private String price;
        private String adultPrice;
        private String promotionPrice;
        private Long resId;
        private String seatStatus;
        private Integer seatSequence;
        private String lowestPrice;

    }

}

